package com.heima.article.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.article.dtos.ArticleInfoDto;
import com.heima.model.article.dtos.CollectionBehaviorDto;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author: Luo Zeqi
 * @Date: 2022/11/17/9:48
 */
public interface BehaviorService {

    /**
     * 收藏/取消收藏
     * @param collectionBehaviorDto
     * @return
     */
    ResponseResult collectionBehavior(CollectionBehaviorDto collectionBehaviorDto);


    /**
     * 用户行为的数据回显
     * @param articleInfoDto
     * @return
     */
    ResponseResult loadArticleBehavior(@RequestBody ArticleInfoDto articleInfoDto);
}
